import request from '@/utils/request'
export function saveList(data) {
  return request({
    url: '/saveTesttarget',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function selectList(data) {
  return request({
    url: '/findTesttarget',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function deleteList(data) {
  return request({
    url: '/deleteTesttarget',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
// 查询状态变化使用中指标
export function getChangeOnUse(data) {
  return request({
    url: '/changeOnUse',
    method: 'post',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
// 查询指标和单位
export function getUnit(data) {
  return request({
    url: '/getUnit',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function getAllOnUseTesttarget(data) {
  return request({
    url: '/getAllOnUseTesttarget',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
